<template>
  <dl>
    <dt>
      <img
        src="https://lanhu.oss-cn-beijing.aliyuncs.com/psp39hhdix61g8rnu21i68yjz6v3wiwj3e81bad721c-cd06-46db-9f7e-3bf66042cfd5"
        alt=""
      />
    </dt>
    <dd>
      <div class="bookInfo">
        <h4>{{ prevItem.bookName }}</h4>
        <div class="people">
          <div class="played">
            <span class="icon-img">
              <img
                src="https://lanhu.oss-cn-beijing.aliyuncs.com/pscilyy9gsjrmqdbacjykwivrwkhx3yg8s863fb0b2-bd2d-4a74-b09f-6439c7b82d14"
                alt=""
              />
            </span>
            3105597
          </div>
          <span class="waitinfo">差{{ prevItem.remainder }}人</span>
        </div>
        <div class="startTime">{{ prevItem.startTime }}</div>
        <p>剧本时长：{{ prevItem.bookTime }}</p>
      </div>
      <div class="prevbtn">
        <button>预约</button>
      </div>
    </dd>
  </dl>
</template>
<script>
export default {
  props: ["prevItem"],
  data() {
    return {};
  },
};
</script>
<style lang="less" scoped>
dl {
  display: flex;
  box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1);
  background-color: rgb(255, 255, 255);
  border-radius: 0.2rem;
  width: 3.5rem;
  height: 1.2rem;
  align-items: center;
  box-sizing: border-box;
  padding: 0.1rem;
  dt {
    width: 0.77rem;
    height: 1.02rem;
    overflow: hidden;
    border-radius: 0.12rem;
    img {
      width: 100%;
      display: block;
    }
  }
  dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 0.06rem;
    height: 100%;
    font-size: 0.1rem;
    flex: auto;
    .bookInfo {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
    }
    h4 {
      font-size: 0.14rem;
      color: #333333;
      font-weight: 500;
      margin-left: 0.06rem;
    }
    .people {
      display: flex;
      align-items: center;
      height: 0.16rem;
    }
    .played {
      display: flex;
      align-items: center;
      height: 0.16rem;
      line-height: 0.16rem;
    }
    .icon-img {
      width: 0.15rem;
      height: 0.15rem;
      display: block;
      img {
        width: 100%;
      }
    }
    .prevbtn {
      height: 0.22rem;
      width: 0.655rem;

      button {
        background-color: #9f40ff;
        height: 100%;
        width: 100%;
        border-radius: 0.11rem;
        color: #fff;
        font-size: 0.12rem;
        text-align: center;
        line-height: 0.22rem;
      }
    }
    .waitinfo {
      background-color: rgb(242, 229, 255);
      border-radius: 0.08rem;
      height: 0.16rem;
      width: 0.6rem;
      text-align: center;
      line-height: 0.16rem;
      color: rgb(51, 51, 51);
      font-size: 0.01rem;
      display: inline-block;
      margin-left: 0.06rem;
    }
  }
}
</style>
